﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace points.Model
{
    /*
        pk
        obj_name
        add_dt
        mod_dt
        marked_delete_y_n
        rec_id
        name
        name_canon
        descr
    */
    public class TypeTable
    {
        public int Pk { get; set; }
        public string Obj_Name { get; set; }
        public DateTime Add_Dt { get; set; }
        public DateTime Mod_Dt { get; set; }
        public string Marked_Delete_Y_N { get; set; }
        public int Rec_Id { get; set; }
        public string Name { get; set; }
        public string Name_Canon { get; set; }
        public string Descr { get; set; }

        public TypeTable
        (
            int pk,
            string obj_name,
            DateTime add_dt,
            DateTime mod_dt,
            string marked_delete_y_n,
            int rec_id,
            string name,
            string name_canon,
            string descr
        )
        {
            init
            (
                pk,
                obj_name,
                add_dt,
                mod_dt,
                marked_delete_y_n,
                rec_id,
                name,
                name_canon,
                descr
            );
        }

        protected void init
        (
            int pk,
            string obj_name,
            DateTime add_dt,
            DateTime mod_dt,
            string marked_delete_y_n,
            int rec_id,
            string name,
            string name_canon,
            string descr
        )
        {
            Pk = pk;
            Obj_Name = obj_name;
            Add_Dt = add_dt;
            Mod_Dt = mod_dt;
            Marked_Delete_Y_N = marked_delete_y_n;
            Rec_Id = rec_id;
            Name = name;
            Name_Canon = name_canon;
            Descr = descr;
        }
    }
}